using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SkillEditorItem : MonoBehaviour
{
    public Button Btn;
    public Text Text;
    public int index;

    //button click callback
    public delegate void OnClickCallback(int index);

    public OnClickCallback onClickCallback;

    void Awake()
    {
        Btn.onClick.AddListener(()=> {
            onClickCallback?.Invoke(index);
        });
    }
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
